﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace HZ.DrugTrade.Web.Enterprise
{
    public partial class defaultContent : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
                Model.CompanyInfo comInfo = HZ.DrugTrade.BLLFactory.Factory.BLL_Company().GetCompanyInfoByID(CurrentAccount.GetUser().Org.OrgID);
                string roleId = CurrentAccount.GetUser().UserRole.RoleID;
                //if (string.IsNullOrEmpty(comInfo.TelNo))
                //{
                //    HZ.Web.WebUtil.RedirectByScript("SystemManage/EnterPriseInfo.aspx");
                //}
                //else
                //{
                    if (roleId == "02")
                    {//<a href=\"OrderManage/OrderConfirm.aspx\"><img src=\"../lib/images/nav/ddqr.jpg\" /></a><a href=\"InvoiceManage/UnRefundConfirm.aspx\"><img src=\"../lib/images/nav/hkqr.jpg\" /></a>
                        lblContent.Text = "<a href=\"RelationQuery/RelationQueryUnpack.aspx\"><img src=\"../lib/images/nav/psgl.jpg\" /></a><a href=\"OrderManage/OrderDistributeNoSend.aspx\"><img src=\"../lib/images/nav/ddps.jpg\" /></a> <a href=\"InvoiceManage/ReturnDetail.aspx\"><img  src=\"../lib/images/nav/thqr.jpg\" /></a><br /> <a href=\"SystemManage/HospitalList.aspx\"><img src=\"../lib/images/nav/ckyy1.jpg\" /></a><a href=\"SystemManage/CompanySCList.aspx\"><img src=\"../lib/images/nav/CompanySC.jpg\"></a><a href=\"help11.doc\" target=\"_blank\"><img src=\"../lib/images/nav/sysm.jpg\" /></a>";
                        //this.pnlTS.Visible = false;
                        this.Page.Controls.Add(new LiteralControl("<script>window.onload='';</script>"));
                    }
                    else
                    {
                        lblContent.Text = "<a href=\"RelationQuery/RelationQueryUnpack.aspx\"><img src=\"../lib/images/nav/psgl.jpg\" /></a><a href=\"SystemManage/HospitalList.aspx\"><img src=\"../lib/images/nav/ckyy1.jpg\" /></a><a href=\"../Hospitals/SystemManage/CompanyList.aspx\"><img src=\"../lib/images/nav/ckqy.jpg\"></a><a href=\"help21.doc\" target=\"_blank\"><img src=\"../lib/images/nav/sysm.jpg\" /></a>";
                    }
                    //if (roleId == "02")
                    //{
                    //        ClientScript.RegisterStartupScript(this.GetType(), "", "window.showModalDialog('/ShowCompany_PSInfo.aspx', '', 'scroll:yes;status:no;resizable:no;dialogWidth:900px;dialogHeight:50px;center:yes;');", true);
                    //}
                //}
                //ClientScript.RegisterStartupScript(this.GetType(), "", "window.showModalDialog('/OutTimeWarning.aspx?roleId=" + roleId + "', '', 'scroll:yes;status:no;resizable:no;dialogWidth:1024px;dialogHeight:300px;center:yes;');", true);
            }
        }
    }
}
